﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace HYRevitCode.ElementFilterUtility
{
	public abstract class BaseFilter<X> : ISelectionFilter where X : Element
	{
		public virtual bool AllowElement(Element elem)
		{
			return typeof(X) == elem.GetType();
		}

		public virtual bool AllowReference(Reference reference, XYZ position)
		{
			return false;
		}
	}
}
